<?php

class Silk_View_Helper_AppendStylesheet {

    public function setView(Zend_View_Interface $pView){
	$this->view = $pView;
    }

    public function appendStylesheet(Silk_Module_Type $pModuleType, $pName){
	$asset_path = $pModuleType->getAssetPath();

	$assets = Zend_Registry::get('silk_cms_assets___');
	$assets['stylesheets'][] = rtrim($asset_path, '/') . '/' . $pName;
	Zend_Registry::set('silk_cms_assets___', $assets);
	return $this;


    }

}

?>